// src/router/index.js
import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  mode: 'hash',  // 或 'history'
  routes: [
    {
      path: '/',
      
      component: () => import('../views/NewLogin/NewLogin.vue')
    },
    {
      path: '/end',
      
      component: () => import('../views/end/end.vue')
    },
    {
      path: '/getMenuInfo',
      
      component: () => import('../views/Home/Home.vue'),
      children:[
        {
          path:'',
          component: ()=> import('../views/ZhangHu/ZhangHu.vue')
        },
        {
          path:'huoqi',
          component: ()=> import('../views/HuoQi/HuoQi.vue')
        },
        {
          path:'mingxi',
          component: ()=> import('../views/MingXi/MingXi.vue')
        },
        {
          path:'list',
          component: ()=> import('../views/List/List.vue')
        },
        {
          path:'finished',
          component: ()=> import('../views/xiazai/xiazai.vue')
        },
        {
          path:'files',
          component: ()=> import('../views/files/files.vue')
        }
      ]
    }
  ]
})
